<?php
/**
 * Created by PhpStorm.
 * User: zyg
 * Date: 2021/4/15
 * Time: 15:36
 */
$str = '我爱北京天安门，天安门上太阳升';
$arr = \Fukuball\Jieba\Jieba::cut($str);
print_r($arr);